package cn.edu.sgu.www.mhxysy.service.chongwu.impl;

import cn.edu.sgu.www.mhxysy.entity.chongwu.ChongwuSkillType;
import cn.edu.sgu.www.mhxysy.mapper.chongwu.ChongwuSkillTypeMapper;
import cn.edu.sgu.www.mhxysy.service.chongwu.ChongwuSkillTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChongwuSkillTypeServiceImpl implements ChongwuSkillTypeService {

    private final ChongwuSkillTypeMapper chongwuSkillTypeMapper;

    @Autowired
    public ChongwuSkillTypeServiceImpl(ChongwuSkillTypeMapper chongwuSkillTypeMapper) {
        this.chongwuSkillTypeMapper = chongwuSkillTypeMapper;
    }

    @Override
    public List<ChongwuSkillType> selectAll() {
        return chongwuSkillTypeMapper.selectList(null);
    }

    @Override
    public ChongwuSkillType selectById(Integer id) {
        return chongwuSkillTypeMapper.selectById(id);
    }

}